package com.wechat.xcx.service;

import com.wechat.xcx.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class userServiceImpl implements userService {
    @Autowired
    com.wechat.xcx.mapper.userMapper userMapper;

    @Override
    public Integer insertUser(User user) {
        return userMapper.addUser(user);
    }

    @Override
    public Integer deleteUserByUserId(String UserId) {
        return userMapper.deleteUserByUserId(UserId);
    }

    @Override
    public Integer updateUserById(String UserId) {
        return userMapper.updateUserById(UserId);
    }

    @Override
    public List<User> selectUserById(String UserId) {
        return userMapper.selectUserById(UserId);
    }
}
